package com.itcodai.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * @author c-fanqj
 * @date 2021/12/17
 * @apiNote 用户实体类
 */
//@Data
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
// 用于实体类，表示对类进行说明，用于参数用实体类接收
@ApiModel(value = "用户实体类")
public class User /*implements Serializable*/ {

    //private static final long serialVersionUID = 1L;
    // 用于类中属性，表示对 model 属性的说明或者数据操作更改
    @ApiModelProperty(value = "用户唯一标识")
    private Long id;

    @ApiModelProperty(value = "用户姓名")
    private String username;

    @ApiModelProperty(value = "用户密码")
    private String password;

    /*public User() {
    }*/

    /*public User(Long id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }*/

    /*@Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", username=" + username +
                ", password='" + password + '\'' +
                '}';
    }*/

    //private String name;
    //private Integer age;
    //private transient String sex = "woman";
    //public static String signature = "我的眼里只有你";  // 你眼中的世界就是你自己的样子   我的眼里只有你

    /*@Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", signature='" + signature + '\'' +
                '}';
    }*/

    /*public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }*/

}
